<template>
	<view>
		<view class="goods_list">
			<view class="goods_item" v-for="(item,index) in recommendList" :key="index">
				<view class="item_image">
					<image :src="item.image"></image>
				</view>
				<view class="price">
					<text>￥{{item.price}}</text>
				</view>
				<view class="item_title">
					<text>{{item.title}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		props:{
			recommendList:{
				type:Array,
				default(){
					return {}
				}
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
.goods_list{
		display:flex;
		margin-left: 5px;
		background: #eee;
		flex-wrap: wrap;
		.goods_item{
			background:#fff;
			width:47%;
			margin:8rpx;
			.item_image{
				margin:0 auto;
				width:90%;
				height: 350rpx;
				image{
					margin-top: 5px;
					width:100%;
					height: 100%;
				}
			}
			.price{
				color:#b50e03;
				margin-left: 12rpx;
				margin-top: 10rpx;
				font-weight: bold;
				font-size: 32rpx;
			}
			.item_title{
				width: 90%;
				margin:0 auto;
				font-size: 25rpx;
				padding-bottom: 5px;
			}
		}
	}
</style>
